package com.banma.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.banma.common.entity.UserEntity;
import com.banma.dao.mapper.impl.UserDAO;

@Service
public class UserServiceImpl {
	
	@Autowired
	private UserDAO userDAO;
	
	public List<UserEntity> queryAll(){
		return userDAO.queryAll();
	}

	public UserEntity findById(Integer id){
			return userDAO.findById(id);
	}
}
